package com.summit.exam.utils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.swing.*;
import java.io.IOException;
import java.io.PrintWriter;

public class MyDialog {
    public static void showDialog(String tile, HttpServletResponse resp){
        PrintWriter out = null;
        try {
            out = resp.getWriter();
            out.print("<script language='JavaScript'>alert(' " + tile + " ');</script>");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
